package com.hf.lookatme.zmodel.impls;

import android.content.Context;

import com.hf.lookatme.zbean.GuessYourLikeData;
import com.hf.lookatme.zmodel.IModel_GuessYourLikeData;
import com.hf.lookatme.zmodel.loadlistener.OnLoadGuessYourLikeDataListener;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述：
 * 创建人：JoeShiguang
 * 创建日期：2015/6/26
 * 修改人：
 * 修改日期：
 *
 * @Version 1.0
 */
public class Model_GuessYourLikeData implements IModel_GuessYourLikeData {

  @Override
  public void getGuessYourLikeData(Context context, OnLoadGuessYourLikeDataListener listener) {

    List<GuessYourLikeData> list_data = new ArrayList<GuessYourLikeData>();
    for (int i=0; i<5; i++){
      GuessYourLikeData guess = new GuessYourLikeData();
      guess.setType("type"+i);
      guess.setName("Name"+i);
      guess.setContextPreview("contextPreview"+i);
      guess.setTypeColor(i);
      guess.setDate("2015-6-2"+i);
      boolean isVerfied = false;
      if(i%2 == 0){
        isVerfied = true;
      }
      guess.setVerified(isVerfied);

      list_data.add(guess);
    }
    listener.onLoadGuessDataSuccess(list_data);
  }
}
